package com.akcome.apollo.service;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import com.akcome.apollo.domain.VMiningWorkers;
import com.akcome.apollo.dto.AccountAcceptDto;

/**
 * Service接口
 *
 * @author wn
 * @version $v: 1.0.0, $time:2017-12-26 08:49:00 Exp $
 */
public interface VMiningWorkersService{

	VMiningWorkers save(VMiningWorkers vMiningWorkers);
	
	VMiningWorkers findOne(Long id);

	AccountAcceptDto sumAcceptBypuid(Long puid, String coinType);

	int countByPuid(Long puid, String coinType);

	int countByActive(Long puid, String coinType);

	Page<VMiningWorkers> findByPage(Long accountId, String workerName, String type, String coinType, Pageable page);

	List<Object> countByActive();
}
